<%--
  Created by IntelliJ IDEA.
  User: c
  Date: 2017-12-04
  Time: 17:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>站内信</title>
    <%@include file="/WEB-INF/jsp/header.jsp"%>
</head>
<style>
    table td{
        font: 14px 'microsoft yahei', 微软雅黑, Helvetica, Arial, Tahoma, 黑体, 宋体, sans-serif;
    }
</style>
<body>
    <div class="container-fluid" style="width: 90%;">
        <div class="panel panel-default">
            <div class="panel-heading">
                <span class="h3">搜索</span>
                <a href=".panel-body" class="caret pull-right" data-toggle="collapse"></a>
            </div>
            <div class="panel-body collapse in fade">
                <form id="con" class="pull-left form-inline">
                    <label>标题：</label>
                    <input class="form-control" type="text" name="title" oninput="search()" placeholder="标题" value="">
                    &nbsp;&nbsp;
                    <label>发送人：</label>
                    <input class="form-control" type="text" name="fasong" oninput="search()" placeholder="发送人" value="">
                    &nbsp;&nbsp;
                    <label>接收人：</label>
                    <input class="form-control" type="text" name="jieshou" oninput="search()" placeholder="接收人" value="">
                    &nbsp;
                    <button type="button" onclick="search()" class="layui-btn layui-btn-small">
                        <i class="layui-icon"></i> 搜索
                    </button>
                </form>
            </div>
            <table id="drugTable"
                   data-pagination-pre-text="上一页"
                   data-pagination-next-text="下一页"
                   data-click-to-select="true"
                   data-toggle="table"
                   data-url="${ctx}/send/search"
                   data-striped="true"
                   data-toolbar="#toolbar"
                   data-toolbar-align="right"
                   data-pagination="true"
                   data-side-pagination="server"
                   data-page-size="10"
            >
                <thead>
                <tr >
                    <th data-checkbox="true"></th>
                    <th data-field="title" data-events="optEvents" data-formatter="fmttitle">标题</th>
                    <th data-field="worker.woName">发送人</th>
                    <th data-field="sendDate">发送时间</th>
                    <th data-field="messageReceiver.worker.woName">接收人</th>
                    <th data-formatter="caozuo" data-events="optEvents">操作</th>
                </tr>
                </thead>
            </table>
        </div>

    </div>
    <div id="liaotian" style="display: none; margin:auto;" style="width: 85%;">
        <div class="modal fade" id="modal-id" style="width: 85%; margin: auto;">
            <div class="modal-dialog" style="width: 85%;">
                <div class="modal-content" style="width: 85%;">
                    <div class="modal-header">
                        <button type="button"  class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h2 style="font-size: 18px;font-weight: bold;">站内信回复</h2>
                    </div>
                    <div class="modal-body" style="width: 100%;">
                        <%--height: 382px;--%>
                       <div class="gun" id="gun" style="height: 302px; overflow:auto;  overflow-x: hidden; overflow-y: auto;">
                        <div id="context">

                        </div>
                       </div>
                        <div class="cao" style="position: relative;left:-15px;width:699px;height: 105px; border-top: 1px solid black;">
                            <textarea name="reContext" class="layui-textarea" style="width: 660px;border:none;"></textarea>
                            <div class="text-right" style="position: relative;top:-20px;right:10px;">
                                <button class="btn btn-success" onclick="fasong()">发送</button>
                            </div>
                        </div>
                    </div>
                </div><!-- /.modal-content -->
            </div><!-- /.modal-dialog -->
        </div><!-- /.modal -->
    </div>
    <input type="hidden" value="${sessionScope.loginUser.woJubnum}" name="woNum">
    <%@include file="/WEB-INF/jsp/footer.jsp"%>
    <script src="${ctx}/res/js/email.js"></script>
</body>
</html>
